import pandas as pd
import json
from bdtime import tt
import numpy as np
from tools.recoder_args import DefaultArgs


# f_path = r'..\tempdir\recorded_states\abs_mouse\测试'
# f_path = r'..\tempdir\recorded_states\rel_mouse\test'
f_path = r'..\tempdir\recorded_states\key\test'


with open(f_path, 'r') as f:
    dc_ls = json.load(f)


start_i = 2 if 'rel_mouse' in f_path else 1
df = pd.DataFrame(dc_ls[start_i:])

print(df.head())
print('record_time_schedule ---', DefaultArgs.record_time_schedule[:5])

